package com.app.designpatternslearn.creational.simplefactorymodel.code

fun getShape(type: ShapeType): Shape = when(type) {
    ShapeType.CIRCLE -> Circle()
    ShapeType.RECTANGLE -> Rectangle()
    ShapeType.SQUARE -> Square()
}